﻿<UserControl x:Class="ucSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             mc:Ignorable="d" 
             d:DesignHeight="700" d:DesignWidth="500" Background="DarkGray"  Opacity=".9" Padding="7,0,7,0">

    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBlock">
                <Setter Property="Foreground" Value="White" />
            </Style>
            <Style TargetType="CheckBox">
                <Setter Property="Foreground" Value="White" />
            </Style>
            <Style TargetType="ComboBox">
                <Setter Property="Foreground" Value="Black" />
            </Style>
        </Grid.Resources>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="100*" />
        </Grid.RowDefinitions>
        <Button Grid.Row="0" Name="cmdClose" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" Height="50">
            <Image Source="/DuoDockApp;component/Resources/Close_16xLG.png" />
        </Button>
        <StackPanel Grid.Row="1" Orientation="Vertical">
            <TextBlock Text="BACKGROUND" FontSize="40" />
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100*" />
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition Width="50" />
                </Grid.ColumnDefinitions>
                <TextBlock Name="txtBackground" Text="(select file)" TextWrapping="Wrap" />
                <Button Name="cmdClearBackground" Grid.Column="1" FontSize="30" Height="50">
                    <Button.Template>
                        <ControlTemplate>
                            <Border BorderBrush="#444444" BorderThickness="2" Background="Transparent">
                                <TextBlock Text="X" HorizontalAlignment="Center" />
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>
                <Button Name="cmdChooseImage" Grid.Column="2" FontSize="30" Height="50">
                    <Button.Template>
                        <ControlTemplate>
                            <Border BorderBrush="#444444" BorderThickness="2" Background="Transparent">
                                <TextBlock Text="..." HorizontalAlignment="Center" />
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>

            </Grid>

            <TextBlock Text="SOUNDS" FontSize="40" Margin="0,20,0,0" />
            <StackPanel Orientation="Horizontal">
                <CheckBox Name="chkPlaySounds" Content="Play sound for " Height="50" VerticalAlignment="Stretch" FontSize="28"  />
                <ComboBox Name="lstPlayMinutes" SelectedIndex="3" FontSize="28" HorizontalAlignment="Left" VerticalAlignment="Center">
                    <ComboBox.Resources>
                        <Style TargetType="TextBlock">
                            <Style.Triggers>
                                <DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=ComboBoxItem}}" Value="True">
                                    <Setter Property="Foreground" Value="Black" />
                                </DataTrigger>
                            </Style.Triggers>
                        </Style>
                    </ComboBox.Resources>
                    <ComboBox.ItemContainerStyle>
                        <Style TargetType="ComboBoxItem">
                            <Style.Triggers>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter Property="Background" Value="Red" />
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </ComboBox.ItemContainerStyle>
                    <sys:Int32>0</sys:Int32>
                    <sys:Int32>1</sys:Int32>
                    <sys:Int32>15</sys:Int32>
                    <sys:Int32>30</sys:Int32>
                    <sys:Int32>60</sys:Int32>
                    <sys:Int32>120</sys:Int32>
                    <sys:Int32>240</sys:Int32>
                </ComboBox>
                <TextBlock Text=" minutes" FontSize="28" />
            </StackPanel>
            <TextBlock Text="Sound file" FontWeight="SemiBold" FontSize="22" Margin="0,7,0,0" />
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100*" />
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition Width="50" />
                </Grid.ColumnDefinitions>
                <TextBlock Name="txtSoundFile" Text="(select file)" TextWrapping="Wrap" />
                <Button Name="cmdClearSoundFile" Grid.Column="1" Content="X" FontSize="30" Height="50">
                    <Button.Template>
                        <ControlTemplate>
                            <Border BorderBrush="#444444" BorderThickness="2" Background="Transparent">
                                <TextBlock Text="X" HorizontalAlignment="Center" />
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>
                <Button Name="cmdChooseSoundFile" Grid.Column="2" FontSize="30" Height="50">
                    <Button.Template>
                        <ControlTemplate>
                            <Border BorderBrush="#444444" BorderThickness="2" Background="Transparent">
                                <TextBlock Text="..." HorizontalAlignment="Center" />
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>

            </Grid>

            <TextBlock Text="ALARM" FontSize="40" Margin="0,20,0,0" />
            <StackPanel Orientation="Horizontal">
                <CheckBox Name="chkEnableAlarm" Content="Play alarm at " FontSize="28" />
                <ComboBox Name="lstAlarmHour" SelectedIndex="0" FontSize="28">
                    <sys:String>1</sys:String>
                    <sys:String>2</sys:String>
                    <sys:String>3</sys:String>
                    <sys:String>4</sys:String>
                    <sys:String>5</sys:String>
                    <sys:String>6</sys:String>
                    <sys:String>7</sys:String>
                    <sys:String>8</sys:String>
                    <sys:String>9</sys:String>
                    <sys:String>10</sys:String>
                    <sys:String>11</sys:String>
                    <sys:String>12</sys:String>
                </ComboBox>
                <TextBlock Text=" : " FontSize="28" />
                <ComboBox Name="lstAlarmMinute" SelectedIndex="0" FontSize="28">
                    <sys:String>00</sys:String>
                    <sys:String>01</sys:String>
                    <sys:String>02</sys:String>
                    <sys:String>03</sys:String>
                    <sys:String>04</sys:String>
                    <sys:String>05</sys:String>
                    <sys:String>06</sys:String>
                    <sys:String>07</sys:String>
                    <sys:String>08</sys:String>
                    <sys:String>09</sys:String>
                    <sys:String>10</sys:String>
                    <sys:String>11</sys:String>
                    <sys:String>12</sys:String>
                    <sys:String>13</sys:String>
                    <sys:String>14</sys:String>
                    <sys:String>15</sys:String>
                    <sys:String>16</sys:String>
                    <sys:String>17</sys:String>
                    <sys:String>18</sys:String>
                    <sys:String>19</sys:String>
                    <sys:String>20</sys:String>
                    <sys:String>21</sys:String>
                    <sys:String>22</sys:String>
                    <sys:String>23</sys:String>
                    <sys:String>24</sys:String>
                    <sys:String>25</sys:String>
                    <sys:String>26</sys:String>
                    <sys:String>27</sys:String>
                    <sys:String>28</sys:String>
                    <sys:String>29</sys:String>
                    <sys:String>30</sys:String>
                    <sys:String>31</sys:String>
                    <sys:String>32</sys:String>
                    <sys:String>33</sys:String>
                    <sys:String>34</sys:String>
                    <sys:String>35</sys:String>
                    <sys:String>36</sys:String>
                    <sys:String>37</sys:String>
                    <sys:String>38</sys:String>
                    <sys:String>39</sys:String>
                    <sys:String>40</sys:String>
                    <sys:String>41</sys:String>
                    <sys:String>42</sys:String>
                    <sys:String>43</sys:String>
                    <sys:String>44</sys:String>
                    <sys:String>45</sys:String>
                    <sys:String>46</sys:String>
                    <sys:String>47</sys:String>
                    <sys:String>48</sys:String>
                    <sys:String>49</sys:String>
                    <sys:String>50</sys:String>
                    <sys:String>51</sys:String>
                    <sys:String>52</sys:String>
                    <sys:String>53</sys:String>
                    <sys:String>54</sys:String>
                    <sys:String>55</sys:String>
                    <sys:String>56</sys:String>
                    <sys:String>57</sys:String>
                    <sys:String>58</sys:String>
                    <sys:String>59</sys:String>

                </ComboBox>
                <ComboBox Name="lstAlarmAMPM" SelectedIndex="0" FontSize="28" Margin="7,0,0,0">
                    <sys:String>AM</sys:String>
                    <sys:String>PM</sys:String>
                </ComboBox>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0,7,0,0">
                <CheckBox Name="chkAlarmMon" Content="Mon" FontSize="24" Margin="0,0,10,0" />
                <CheckBox Name="chkAlarmTue" Content="Tue" FontSize="24" Margin="0,0,10,0" />
                <CheckBox Name="chkAlarmWed" Content="Wed" FontSize="24" Margin="0,0,10,0" />
                <CheckBox Name="chkAlarmThu" Content="Thu" FontSize="24" Margin="0,0,10,0" />
                <CheckBox Name="chkAlarmFri" Content="Fri" FontSize="24" Margin="0,0,10,0" />
                <CheckBox Name="chkAlarmSat" Content="Sat" FontSize="24" Margin="0,0,10,0" />
                <CheckBox Name="chkAlarmSun" Content="Sun" FontSize="24"  Margin="0,0,0,0" />
            </StackPanel>
            <TextBlock Text="Sound file" FontWeight="SemiBold" FontSize="22" Margin="0,7,0,0" />
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100*" />
                    <ColumnDefinition Width="50" />
                    <ColumnDefinition Width="50" />
                </Grid.ColumnDefinitions>
                <TextBlock Name="txtAlarmFile" Text="(select file)" TextWrapping="Wrap" />
                <Button Name="cmdClearAlarmFile" Grid.Column="1" Content="X" FontSize="30" Height="50">
                    <Button.Template>
                        <ControlTemplate>
                            <Border BorderBrush="#444444" BorderThickness="2" Background="Transparent">
                                <TextBlock Text="X" HorizontalAlignment="Center" />
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>
                <Button Name="cmdChooseAlarmFile" Grid.Column="2" FontSize="30" Height="50">
                    <Button.Template>
                        <ControlTemplate>
                            <Border BorderBrush="#444444" BorderThickness="2" Background="Transparent">
                                <TextBlock Text="..." HorizontalAlignment="Center" />
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>                    
            </Grid>

        </StackPanel>
    </Grid>
</UserControl>
